<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>担保交友筛选 - 安全社交平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #4f46e5;
            --success-color: #10b981;
            --light-bg: #f8fafc;
            --dark-text: #1e293b;
            --light-text: #64748b;
            --border-color: #e2e8f0;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--light-bg);
            color: var(--dark-text);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: var(--primary-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .badge-secured {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success-color);
            border: 1px solid var(--success-color);
        }
        
        .card {
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.875rem;
            color: var(--light-text);
        }
        
        .stat-item i {
            font-size: 0.9rem;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .no-image-placeholder {
            background-color: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--light-text);
        }
        
        .image-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
            height: 100%;
        }
        
        .image-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .overlay-text {
            position: absolute;
            bottom: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 2px 8px;
            font-size: 0.75rem;
            border-radius: 4px 0 0 0;
        }
        
        .action-btn {
            transition: all 0.2s ease;
        }
        
        .action-btn:hover {
            transform: translateY(-2px);
        }
        
        .like-btn.active {
            color: #ef4444;
        }
        
        .save-btn.active {
            color: var(--primary-color);
        }
        
        .section-title {
            position: relative;
            display: inline-block;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
        }
        
        .view-all-link {
            color: var(--primary-color);
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .view-all-link:hover {
            color: var(--secondary-color);
        }
        
        /* 筛选区域样式 */
        .filter-section {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .filter-group {
            margin-bottom: 1.5rem;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-tag {
            background-color: var(--light-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .filter-tag:hover {
            background-color: #e6efff;
        }
        
        .filter-tag.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .price-slider {
            width: 100%;
            margin: 1rem 0;
        }
        
        .price-display {
            display: flex;
            justify-content: space-between;
            font-size: 0.875rem;
            color: var(--light-text);
        }
        
        .rating-stars {
            color: #f59e0b;
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .mobile-filter-toggle {
            display: none;
            margin-bottom: 1rem;
        }
        
        .filter-mobile-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1050;
            display: none;
        }
        
        .filter-mobile-panel {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 85%;
            max-width: 350px;
            background-color: white;
            z-index: 1060;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
            padding: 1.5rem;
        }
        
        .filter-mobile-panel.active {
            transform: translateX(0);
        }
        
        .close-filter {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .desktop-filters {
                display: none;
            }
            
            .mobile-filter-toggle {
                display: block;
            }
            
            .filter-mobile-overlay.active {
                display: block;
            }
        }
        
        /* 结果计数 */
        .results-count {
            color: var(--light-text);
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        /* 排序选项 */
        .sort-options {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 1.5rem;
        }
        
        /* 活跃筛选标签 */
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
        }
        
        .active-filter-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            background-color: #e6efff;
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.875rem;
        }
        
        .remove-filter {
            cursor: pointer;
            font-weight: bold;
        }
        
        /* 加载更多按钮 */
        .load-more {
            display: block;
            margin: 2rem auto;
            padding: 0.75rem 2rem;
            background-color: white;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .load-more:hover {
            background-color: var(--primary-color);
            color: white;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container">
            <a class="navbar-brand d-flex align-items-center gap-2" href="#">
                <i class="fas fa-shield-alt"></i>
                <span>安全社交</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">担保交友</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣群组</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">活动推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">安全指南</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <div class="position-relative">
                        <button class="btn btn-outline-light">
                            <i class="fas fa-bell"></i>
                        </button>
                        <span class="position-absolute top-0 right-0 translate-middle badge rounded-circle bg-danger">3</span>
                    </div>
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人中心</a></li>
                            <li><a class="dropdown-item" href="#">我的好友</a></li>
                            <li><a class="dropdown-item" href="#">我的发布</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container py-6">
        <h1 class="mb-6">担保交友推荐</h1>
        
        <!-- 移动端筛选按钮 -->
        <button class="btn btn-outline-primary w-100 mobile-filter-toggle" id="mobileFilterToggle">
            <i class="fas fa-filter me-2"></i>筛选条件
        </button>
        
        <!-- 移动端筛选面板 -->
        <div class="filter-mobile-overlay" id="filterOverlay"></div>
        <div class="filter-mobile-panel" id="filterPanel">
            <button class="close-filter" id="closeFilter">×</button>
            <h3 class="mb-4">筛选条件</h3>
            <!-- 移动端筛选内容 - 与桌面端相同 -->
            <div class="mobile-filters">
                <!-- 这里包含所有筛选内容，与桌面端相同 -->
            </div>
        </div>
        
        <div class="row">
            <!-- 左侧筛选栏 - 桌面端 -->
            <div class="col-lg-3 desktop-filters">
                <div class="filter-section sticky-top" style="top: 20px;">
                    <h3 class="section-title">筛选条件</h3>
                    
                    <!-- 类别筛选 -->
                    <div class="filter-group">
                        <div class="filter-title">
                            <i class="fas fa-tags"></i> 交友类别
                        </div>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">兴趣爱好</div>
                            <div class="filter-tag">学习交流</div>
                            <div class="filter-tag">户外活动</div>
                            <div class="filter-tag">美食探店</div>
                            <div class="filter-tag">文化艺术</div>
                            <div class="filter-tag">运动健身</div>
                            <div class="filter-tag">线上交流</div>
                        </div>
                    </div>
                    
                    <!-- 地区筛选 -->
                    <div class="filter-group">
                        <div class="filter-title">
                            <i class="fas fa-map-marker-alt"></i> 地区
                        </div>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">北京</div>
                            <div class="filter-tag">上海</div>
                            <div class="filter-tag">广州</div>
                            <div class="filter-tag">深圳</div>
                            <div class="filter-tag">杭州</div>
                            <div class="filter-tag">成都</div>
                            <div class="filter-tag">武汉</div>
                            <div class="filter-tag">全国</div>
                            <div class="filter-tag">线上</div>
                        </div>
                    </div>
                    
                    <!-- 价格范围 -->
                    <div class="filter-group">
                        <div class="filter-title">
                            <i class="fas fa-money-bill-wave"></i> 活动费用
                        </div>
                        <input type="range" min="0" max="500" value="200" class="price-slider" id="priceRange">
                        <div class="price-display">
                            <span>免费</span>
                            <span id="priceValue">¥200以下</span>
                            <span>¥500+</span>
                        </div>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">免费</div>
                            <div class="filter-tag">付费</div>
                        </div>
                    </div>
                    
                    <!-- 认证等级 -->
                    <div class="filter-group">
                        <div class="filter-title">
                            <i class="fas fa-shield-alt"></i> 认证等级
                        </div>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">身份认证</div>
                            <div class="filter-tag">学历认证</div>
                            <div class="filter-tag">职业认证</div>
                            <div class="filter-tag">官方认证</div>
                        </div>
                    </div>
                    
                    <!-- 参与人数 -->
                    <div class="filter-group">
                        <div class="filter-title">
                            <i class="fas fa-users"></i> 参与人数
                        </div>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">5人以下</div>
                            <div class="filter-tag">5-20人</div>
                            <div class="filter-tag">20-50人</div>
                            <div class="filter-tag">50人以上</div>
                        </div>
                    </div>
                    
                    <!-- 用户评分 -->
                    <div class="filter-group">
                        <div class="filter-title">
                            <i class="fas fa-star"></i> 组织者评分
                        </div>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">
                                <span class="rating-stars">★★★★★</span>
                            </div>
                            <div class="filter-tag">
                                <span class="rating-stars">★★★★</span><span class="text-muted">及以上</span>
                            </div>
                            <div class="filter-tag">
                                <span class="rating-stars">★★★</span><span class="text-muted">及以上</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 筛选按钮 -->
                    <div class="filter-actions">
                        <button class="btn btn-outline-secondary" id="resetFilters">重置</button>
                        <button class="btn btn-primary">应用筛选</button>
                    </div>
                </div>
            </div>
            
            <!-- 右侧内容区 -->
            <div class="col-lg-9">
                <!-- 搜索框 -->
                <div class="input-group mb-4">
                    <input type="text" class="form-control" placeholder="搜索担保交友活动、兴趣或组织者...">
                    <button class="btn btn-primary" type="button">
                        <i class="fas fa-search"></i>
                    </button>
                </div>
                
                <!-- 活跃筛选标签 -->
                <div class="active-filters">
                    <div class="active-filter-tag">
                        户外活动 <span class="remove-filter">×</span>
                    </div>
                    <div class="active-filter-tag">
                        上海 <span class="remove-filter">×</span>
                    </div>
                    <div class="active-filter-tag">
                        免费 <span class="remove-filter">×</span>
                    </div>
                    <div class="active-filter-tag">
                        <a href="#" class="text-primary" id="clearAllFilters">清除全部</a>
                    </div>
                </div>
                
                <!-- 结果计数和排序 -->
                <div class="d-flex justify-content-between align-items-center mb-4">
                    <div class="results-count">找到 <strong>24</strong> 个符合条件的担保交友活动</div>
                    <div class="sort-options">
                        <select class="form-select form-select-sm w-auto">
                            <option>推荐排序</option>
                            <option>最新发布</option>
                            <option>最多参与</option>
                            <option>评分最高</option>
                            <option>距离最近</option>
                        </select>
                    </div>
                </div>
                
                <!-- 交友列表 -->
                <div class="row g-4">
                    <!-- 列表项1 -->
                    <div class="col-md-6">
                        <div class="card h-100 rounded-xl overflow-hidden">
                            <div class="position-relative" style="height: 180px;">
                                <img src="https://picsum.photos/id/1027/600/400" alt="户外徒步活动" class="w-100 h-100 object-cover">
                                <span class="badge badge-secured position-absolute top-3 left-3">
                                    <i class="fas fa-check-circle me-1"></i> 官方认证
                                </span>
                            </div>
                            <div class="p-4">
                                <h5 class="mb-2 line-clamp-2">周末户外徒步，认识自然爱好者</h5>
                                <p class="text-muted text-sm mb-3 line-clamp-2">
                                    难度适中的城市周边徒步路线，适合新手参与，全程有专业向导陪同。
                                </p>
                                <div class="d-flex flex-wrap gap-1 mb-3">
                                    <span class="badge bg-light text-dark text-xs">户外活动</span>
                                    <span class="badge bg-light text-dark text-xs">徒步</span>
                                    <span class="badge bg-light text-dark text-xs">上海</span>
                                    <span class="badge bg-success text-white text-xs">免费</span>
                                </div>
                                <div class="d-flex justify-content-between align-items-center">
                                    <div class="author-info">
                                        <img src="https://picsum.photos/id/1012/30/30" alt="组织者头像" class="author-avatar">
                                        <span class="text-sm">李明 <span class="rating-stars">★★★★★</span></span>
                                    </div>
                                    <div class="d-flex gap-3">
                                        <div class="stat-item">
                                            <i class="fas fa-users"></i>
                                            <span>18人</span>
                                        </div>
                                        <div class="stat-item">
                                            <i class="far fa-heart"></i>
                                            <span>86</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 列表项2 -->
                    <div class="col-md-6">
                        <div class="card h-100 rounded-xl overflow-hidden">
                            <div class="position-relative" style="height: 180px;">
                                <div class="image-grid">
                                    <img src="https://picsum.photos/id/26/300/300" alt="读书会照片1">
                                    <img src="https://picsum.photos/id/24/300/300" alt="读书会照片2">
                                </div>
                                <span class="overlay-text">+3</span>
                                <span class="badge badge-secured position-absolute top-3 left-3">
                                    <i class="fas fa-check-circle me-1"></i> 身份认证
                                </span>
                            </div>
                            <div class="p-4">
                                <h5 class="mb-2 line-clamp-2">户外读书会，自然与文学的邂逅</h5>
                                <p class="text-muted text-sm mb-3 line-clamp-2">
                                    在公园中分享阅读心得，感受自然与文学的美好结合。
                                </p>
                                <div class="d-flex flex-wrap gap-1 mb-3">
                                    <span class="badge bg-light text-dark text-xs">兴趣爱好</span>
                                    <span class="badge bg-light text-dark text-xs">阅读</span>
                                    <span class="badge bg-light text-dark text-xs">上海</span>
                                    <span class="badge bg-success text-white text-xs">免费</span>
                                </div>
                                <div class="d-flex justify-content-between align-items-center">
                                    <div class="author-info">
                                        <img src="https://picsum.photos/id/1025/30/30" alt="组织者头像" class="author-avatar">
                                        <span class="text-sm">王文静 <span class="rating-stars">★★★★</span></span>
                                    </div>
                                    <div class="d-flex gap-3">
                                        <div class="stat-item">
                                            <i class="fas fa-users"></i>
                                            <span>12人</span>
                                        </div>
                                        <div class="stat-item">
                                            <i class="far fa-heart"></i>
                                            <span>54</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 列表项3 -->
                    <div class="col-md-6">
                        <div class="card h-100 rounded-xl overflow-hidden">
                            <div class="position-relative" style="height: 180px;">
                                <img src="https://picsum.photos/id/1058/600/400" alt="骑行活动" class="w-100 h-100 object-cover">
                                <span class="badge badge-secured position-absolute top-3 left-3">
                                    <i class="fas fa-check-circle me-1"></i> 职业认证
                                </span>
                            </div>
                            <div class="p-4">
                                <h5 class="mb-2 line-clamp-2">城市骑行探索，发现上海之美</h5>
                                <p class="text-muted text-sm mb-3 line-clamp-2">
                                    沿黄浦江骑行，欣赏城市风光，适合有基础骑行经验的朋友。
                                </p>
                                <div class="d-flex flex-wrap gap-1 mb-3">
                                    <span class="badge bg-light text-dark text-xs">户外活动</span>
                                    <span class="badge bg-light text-dark text-xs">骑行</span>
                                    <span class="badge bg-light text-dark text-xs">上海</span>
                                    <span class="badge bg-warning text-white text-xs">AA制</span>
                                </div>
                                <div class="d-flex justify-content-between align-items-center">
                                    <div class="author-info">
                                        <img src="https://picsum.photos/id/1076/30/30" alt="组织者头像" class="author-avatar">
                                        <span class="text-sm">林单车 <span class="rating-stars">★★★★★</span></span>
                                    </div>
                                    <div class="d-flex gap-3">
                                        <div class="stat-item">
                                            <i class="fas fa-users"></i>
                                            <span>24人</span>
                                        </div>
                                        <div class="stat-item">
                                            <i class="far fa-heart"></i>
                                            <span>128</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 列表项4 -->
                    <div class="col-md-6">
                        <div class="card h-100 rounded-xl overflow-hidden">
                            <div class="position-relative" style="height: 180px;">
                                <div class="no-image-placeholder w-100 h-100">
                                    <i class="fas fa-tree fa-3x"></i>
                                </div>
                                <span class="badge badge-secured position-absolute top-3 left-3">
                                    <i class="fas fa-check-circle me-1"></i> 学历认证
                                </span>
                            </div>
                            <div class="p-4">
                                <h5 class="mb-2 line-clamp-2">公园自然观察小组，认识植物鸟类</h5>
                                <p class="text-muted text-sm mb-3 line-clamp-2">
                                    由植物学专业人士带领，认识公园中的动植物，适合亲子参与。
                                </p>
                                <div class="d-flex flex-wrap gap-1 mb-3">
                                    <span class="badge bg-light text-dark text-xs">户外活动</span>
                                    <span class="badge bg-light text-dark text-xs">自然</span>
                                    <span class="badge bg-light text-dark text-xs">上海</span>
                                    <span class="badge bg-success text-white text-xs">免费</span>
                                </div>
                                <div class="d-flex justify-content-between align-items-center">
                                    <div class="author-info">
                                        <img src="https://picsum.photos/id/1062/30/30" alt="组织者头像" class="author-avatar">
                                        <span class="text-sm">刘自然 <span class="rating-stars">★★★★</span></span>
                                    </div>
                                    <div class="d-flex gap-3">
                                        <div class="stat-item">
                                            <i class="fas fa-users"></i>
                                            <span>32人</span>
                                        </div>
                                        <div class="stat-item">
                                            <i class="far fa-heart"></i>
                                            <span>76</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 加载更多 -->
                <button class="load-more">
                    <i class="fas fa-spinner fa-spin me-2"></i>加载更多
                </button>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-dark text-white py-8 mt-12">
        <div class="container">
            <div class="row">
                <div class="col-md-4 mb-6">
                    <h5 class="mb-3">安全社交平台</h5>
                    <p class="text-muted">专注于提供安全、可靠的社交环境，所有交友推荐均经过身份认证</p>
                    <div class="d-flex gap-3 mt-4">
                        <a href="#" class="text-white"><i class="fab fa-weibo fa-lg"></i></a>
                        <a href="#" class="text-white"><i class="fab fa-wechat fa-lg"></i></a>
                        <a href="#" class="text-white"><i class="fab fa-instagram fa-lg"></i></a>
                        <a href="#" class="text-white"><i class="fab fa-twitter fa-lg"></i></a>
                    </div>
                </div>
                <div class="col-md-2 mb-6">
                    <h5 class="mb-3">快速链接</h5>
                    <ul class="list-unstyled">
                        <li><a href="#" class="text-muted">首页</a></li>
                        <li><a href="#" class="text-muted">担保交友</a></li>
                        <li><a href="#" class="text-muted">兴趣群组</a></li>
                        <li><a href="#" class="text-muted">活动推荐</a></li>
                    </ul>
                </div>
                <div class="col-md-2 mb-6">
                    <h5 class="mb-3">安全中心</h5>
                    <ul class="list-unstyled">
                        <li><a href="#" class="text-muted">身份认证</a></li>
                        <li><a href="#" class="text-muted">安全指南</a></li>
                        <li><a href="#" class="text-muted">举报中心</a></li>
                        <li><a href="#" class="text-muted">隐私政策</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5 class="mb-3">发布担保交友</h5>
                    <p class="text-muted mb-3">成为认证用户，发布你的交友活动，认识更多志同道合的朋友</p>
                    <button class="btn btn-primary w-100">
                        <i class="fas fa-plus me-1"></i> 发布活动
                    </button>
                </div>
            </div>
            <div class="border-top border-gray-700 mt-6 pt-6 text-center text-muted">
                <p>&copy; 2023 安全社交平台 版权所有 | 致力于提供安全的社交环境</p>
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 筛选标签切换
        document.querySelectorAll('.filter-tag').forEach(tag => {
            tag.addEventListener('click', function() {
                // 如果是"全部"标签，取消同组其他标签的选中状态
                if (this.textContent.trim() === '全部') {
                    const parentGroup = this.closest('.filter-options');
                    parentGroup.querySelectorAll('.filter-tag').forEach(t => {
                        t.classList.remove('active');
                    });
                    this.classList.add('active');
                } else {
                    // 取消同组"全部"标签的选中状态
                    const parentGroup = this.closest('.filter-options');
                    parentGroup.querySelector('.filter-tag').classList.remove('active');
                    
                    // 切换当前标签状态
                    this.classList.toggle('active');
                }
            });
        });
        
        // 价格滑块
        const priceRange = document.getElementById('priceRange');
        const priceValue = document.getElementById('priceValue');
        
        priceRange.addEventListener('input', function() {
            priceValue.textContent = `¥${this.value}以下`;
        });
        
        // 移动端筛选面板
        const mobileFilterToggle = document.getElementById('mobileFilterToggle');
        const filterOverlay = document.getElementById('filterOverlay');
        const filterPanel = document.getElementById('filterPanel');
        const closeFilter = document.getElementById('closeFilter');
        
        // 复制桌面端筛选内容到移动端
        const desktopFilters = document.querySelector('.desktop-filters .filter-section');
        const mobileFiltersContainer = document.querySelector('.mobile-filters');
        mobileFiltersContainer.innerHTML = desktopFilters.innerHTML;
        
        // 移动端筛选事件
        mobileFilterToggle.addEventListener('click', function() {
            filterOverlay.classList.add('active');
            filterPanel.classList.add('active');
        });
        
        closeFilter.addEventListener('click', function() {
            filterOverlay.classList.remove('active');
            filterPanel.classList.remove('active');
        });
        
        filterOverlay.addEventListener('click', function() {
            filterOverlay.classList.remove('active');
            filterPanel.classList.remove('active');
        });
        
        // 移动端筛选标签点击事件
        document.querySelectorAll('.mobile-filters .filter-tag').forEach(tag => {
            tag.addEventListener('click', function() {
                if (this.textContent.trim() === '全部') {
                    const parentGroup = this.closest('.filter-options');
                    parentGroup.querySelectorAll('.filter-tag').forEach(t => {
                        t.classList.remove('active');
                    });
                    this.classList.add('active');
                } else {
                    const parentGroup = this.closest('.filter-options');
                    parentGroup.querySelector('.filter-tag').classList.remove('active');
                    this.classList.toggle('active');
                }
            });
        });
        
        // 移除活跃筛选标签
        document.querySelectorAll('.remove-filter').forEach(btn => {
            btn.addEventListener('click', function() {
                this.closest('.active-filter-tag').remove();
                
                // 如果没有筛选标签了，隐藏整个容器
                if (document.querySelectorAll('.active-filter-tag').length <= 1) {
                    document.querySelector('.active-filters').style.display = 'none';
                }
            });
        });
        
        // 清除所有筛选
        document.getElementById('clearAllFilters').addEventListener('click', function(e) {
            e.preventDefault();
            document.querySelector('.active-filters').innerHTML = `
                <div class="active-filter-tag">
                    <a href="#" class="text-primary" id="clearAllFilters">清除全部</a>
                </div>
            `;
            document.querySelector('.active-filters').style.display = 'none';
            
            // 重置所有筛选标签
            document.querySelectorAll('.filter-tag').forEach(tag => {
                tag.classList.remove('active');
                if (tag.textContent.trim() === '全部') {
                    tag.classList.add('active');
                }
            });
            
            // 重置价格滑块
            priceRange.value = 200;
            priceValue.textContent = '¥200以下';
        });
        
        // 重置筛选按钮
        document.getElementById('resetFilters').addEventListener('click', function() {
            document.querySelectorAll('.filter-tag').forEach(tag => {
                tag.classList.remove('active');
                if (tag.textContent.trim() === '全部') {
                    tag.classList.add('active');
                }
            });
            
            // 重置价格滑块
            priceRange.value = 200;
            priceValue.textContent = '¥200以下';
        });
    </script>
</body>
</html>
    